/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package se.bth.ke.firstfriend.dto;

import se.bth.ke.firstfriend.model.Todo;

/**
 *
 * @author nico
 */
public class ToggleTodoPriorityDTO {
    
    private int oldPriority;
    private Todo todo;
    
    public ToggleTodoPriorityDTO(int oldPriority, Todo todo) {
        this.oldPriority = oldPriority;
        this.todo = todo;
    }

    public Todo getTodo() {
        return todo;
    }

    public int getOldPriority() {
        return oldPriority;
    }

    public int getNewPriority() {
        return todo.getPriority();
    }
}
